package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.entity.ProjectLockRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 明源定调价项目锁定记录
 */
public interface ProjectLockRecordMapper extends BaseMapper<ProjectLockRecord> {


    /**
     * 是否锁定
     * @param projectId
     * @return
     */
    ProjectLockRecord isLockByProjectId(@Param("projectId") String projectId);

    /**
     * 根据项目id、方案id查询未解锁记录
     * @param projectId
     * @param schemeId
     * @return
     */
    List<ProjectLockRecord> selectByProjectIdAndSchemeId(@Param("projectId") String projectId, @Param("schemeId") String schemeId);
}
